Skip to content

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Oct 22, 2023

  • Adds mypy error codes to output (affects tests)
  • Requires explicit error codes in # type: ignore comments, e.g. type: ignore[assignment]
  • Enables suppressed Ruff lint PGH003.

Related issues

intgr added 3 commits October 23, 2023 00:39
These affect `rest_framework-stubs/compat.pyi` which is using some weird hacks that Ruff and mypy don't really like.

* PYI002: If test must be a simple comparison against sys.platform or sys.version_info
* PYI026: Use typing_extensions.TypeAlias for type aliases
@intgr intgr marked this pull request as draft October 22, 2023 22:06
@intgr
Copy link
Contributor Author

intgr commented Oct 22, 2023

Draft because #496 should be merged first.

@intgr intgr force-pushed the explicit-error-codes branch 2 times, most recently from 26f41c4 to a3acbdf Compare March 19, 2024 15:45
@intgr intgr marked this pull request as ready for review March 19, 2024 15:49
@intgr intgr force-pushed the explicit-error-codes branch from a3acbdf to ec28ed7 Compare September 19, 2025 20:36
@intgr intgr force-pushed the explicit-error-codes branch from 4376980 to 19aff01 Compare September 19, 2025 20:39
@intgr intgr merged commit 04fafaf into typeddjango:master Sep 19, 2025
11 checks passed
@intgr intgr deleted the explicit-error-codes branch September 19, 2025 20:53
intgr added a commit to intgr/djangorestframework-stubs that referenced this pull request Sep 21, 2025
…ngo#497)

* Adds mypy error codes to output (affects tests)
* Requires explicit error codes in `# type: ignore` comments, e.g. `type: ignore[assignment]`
* Enables suppressed Ruff lint PGH003.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant